#include "sort.h"
int insert_sort(int *array, int len)
{
	int i = 0;
	int j = 0;
	int k = 0;
	for(i=1; i<len; i++){
		k = array[i];
		for(j=i-1; j>=0; j--){
			if(array[j] > k){
				array[j+1] = array[j];
			}else{
				array[j] = k;
				break;
			}
		}
	}

	return 0;
}

